home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Excel / Sheet.jar / sheet / SheetShow$2.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-09-03  |  1.2 KB  |  35 lines

  1. package sheet;
  2.  
  3. import javax.microedition.lcdui.Command;
  4. import javax.microedition.lcdui.CommandListener;
  5. import javax.microedition.lcdui.Displayable;
  6. import javax.microedition.lcdui.TextBox;
  7.  
  8. class SheetShow$2 implements CommandListener {
  9.    private final Runnable val$action;
  10.    private final SheetShow this$0;
  11.  
  12.    SheetShow$2(SheetShow var1, Runnable var2) {
  13.       this.this$0 = var1;
  14.       this.val$action = var2;
  15.    }
  16.  
  17.    public void commandAction(Command var1, Displayable var2) {
  18.       if (var1 == SheetShow.access$100()) {
  19.          String var3 = ((TextBox)var2).getString();
  20.          SheetShow.access$500(this.this$0, "Saving...", new SheetShow.3(this, var3));
  21.       } else {
  22.          this.this$0.show();
  23.       }
  24.  
  25.    }
  26.  
  27.    static SheetShow access$200(SheetShow$2 var0) {
  28.       return var0.this$0;
  29.    }
  30.  
  31.    static Runnable access$400(SheetShow$2 var0) {
  32.       return var0.val$action;
  33.    }
  34. }
  35.